<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>{{$books->book_name}} - 全部长书评/读后感 - 夜读书</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="{{mb_substr(strip_tags($books->neirongjianjie),0,160)}}">
    <meta name="keywords" content="{{$books->book_name}},{{$books->book_name}}的书评,{{$books->book_name}}简介,{{$books->book_name}}的作者,夜读书">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')
<div class="navbk">
	<div class="page" style="padding:0 5px;">
		<a href="{{url('mobile/info/'. $books->book_id)}}"><img style="width: 30px;height: 40px;" src="{{url($books->bimg)}}"><span style="padding-left: 10px;color:#42bd56;">{{$books->book_name}}</span></a>
	</div>
</div>
<div id="commentlist" class="page" style="padding:0 5px;">
	<div class="aw-mod aw-question-comment">
      	<div class="mod-head">
            <a href="{{url('mobile/reviewslist/'. $books->book_id .'/reviewslistpost')}}"><span style="float: right;">发表长书评</span></a>
        	<span class="p1">全部长书评({{count($booksreviews)}})</span>
      	</div>
    </div>
    <div id="review">
    @if(count($booksreviews)!=0)
    @foreach($booksreviews as $booksreview)
        <div class="ctsh">
            <div class="tlst">
                <div class="ilst">
                @if(Session::get('nameid') == $booksreview->users->uid)
			    	<a href="{{url('mobile/myhome')}}">
			    @else
			    	<a href="{{url('mobile/uhome/'. $booksreview->users->uid)}}">
			    @endif
                @if($booksreview->users->avatar_file_min!="")
                 	<img src="http://www.yedushu.com/{{ $booksreview->users->avatar_file_min }}">
                @else
                  	<img src="http://www.yedushu.com/usersface/default/avatar-min.png">
                @endif
                </a>
                </div>
                <div class="cp-title">
                <div class="">
                	<a href="{{url('mobile/shupinginfo')}}/{{$booksreview->id}}" title="{{$booksreview->title}}">{{$booksreview->title}}</a>
                </div>
                <span class="user-name">
                	@if(Session::get('nameid') == $booksreview->users->uid)
				    	<a href="{{url('mobile/myhome')}}">
				    @else
				    	<a href="{{url('mobile/uhome/'. $booksreview->users->uid)}}">
				    @endif
                		{{$booksreview->users->user_name}}
                	</a>
                </span>
                	<span class="rating allstar{{$booksreview->rating}}0"></span>
                </div>
            </div>        
        <div class="review-short">{{mb_substr(strip_tags($booksreview->bookreview),0,160)}}......</div>
        <div class="uptime"><span class="wz">{{date('Y-m-d H:i',$booksreview->add_time)}}</span></div>
        </div>
    @endforeach
    @else
    <div class="aw-no-list" style="padding: 15px 0;text-align: center;">暂时没有长书评！</div>
    @endif
	</div>
</div>
@include('mobile.footer')
</body>
</html>
